<template>
  <div id="navbarnotitle">
    <!-- 顶部返回导航 无标题 -->
    <van-nav-bar
      class="navbackground"
      title
      left-arrow
      @click-left="()=>{
          this.$router.back(-1)
      }"
      fixed
    />
  </div>
</template>

<script>
//导入vue
import Vue from "vue";
//导入vant navbar组件
import { NavBar } from "vant";
//组件注册
Vue.use(NavBar);

export default {
  name: "navbar",
  components: {},

  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style scoped>
/* 局部UI样式修改 */
.navbackground {
  background-color: #ffffff00;
  color: #ffffff;

  /* width: 0%; */
}
.van-icon {
  color: #ffffff;
}
.van-hairline--bottom::after {
  border: none;
}
</style>